package com.wqc;

import com.wqc.model.Sleepable;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App2 {
    public static void main(String[] args) {

        ApplicationContext context = new ClassPathXmlApplicationContext("spring/applicationContext2.xml");
        Sleepable me = (Sleepable)context.getBean("proxy");
        me.sleep();
    }
}
